package com.ruoyi.pv.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约时段表对象 pv_appoint_time
 *
 * @author zzx
 * @date 2023-08-28
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@ToString
public class PvAppointTime extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /** 预约编号 */
    private Long appointId;

    /**
     * 名称
     */
    private String name;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "HH:mm:ss")
    private Date endTime;

    /**
     * 可预约人数
     */
    private Integer num;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginDate;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;



}
